package com.sam.im.heiqun.entities;

import com.orm.SugarRecord;

/**
 * Created by Mao Jiqing on 2016/10/15.
 */

public class ChatMessageEntivity extends SugarRecord {
    private Long id;
    private String userid;//自己账号
    private String toid;//对方账号
    private String userName;
    private String userHeadIcon;
    private String userContent;
    private String time;
    private int type;
    private int messagetype;
    private float userVoiceTime;
    private String userVoicePath;
    private String userVoiceUrl;
    private String fileUrl;
    private String imageIconUrl;
    private String imageLocal;

    public ChatMessageEntivity(Long id, String userId, String toId, String userName,
                               String UserHeadIcon, String userContent, String time, int type,
                               int messagetype, float userVoiceTime, String userVoicePath,
                               String userVoiceUrl, int sendState, String fileUrl,
                               String imageIconUrl, String imageLocal) {
        this.id = id;
        this.userid = userId;
        this.toid = toId;
        this.userName =userName;
        this.userHeadIcon = userHeadIcon;
        this.userContent = userContent;
        this.time = time;
        this.type = type;
        this.messagetype = messagetype;
        this.userVoiceTime = userVoiceTime;
        this.userVoicePath = userVoicePath;
        this.userVoiceUrl = userVoiceUrl;
        this.fileUrl = fileUrl;
        this.imageIconUrl = imageIconUrl;
        this.imageLocal = imageLocal;
    }

    public ChatMessageEntivity() {
    }

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getToid() {
        return toid;
    }

    public void setToid(String toid) {
        this.toid = toid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserHeadIcon() {
        return userHeadIcon;
    }

    public void setUserHeadIcon(String userHeadIcon) {
        this.userHeadIcon = userHeadIcon;
    }

    public String getUserContent() {
        return userContent;
    }

    public void setUserContent(String userContent) {
        this.userContent = userContent;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getMessagetype() {
        return messagetype;
    }

    public void setMessagetype(int messagetype) {
        this.messagetype = messagetype;
    }

    public float getUserVoiceTime() {
        return userVoiceTime;
    }

    public void setUserVoiceTime(float userVoiceTime) {
        this.userVoiceTime = userVoiceTime;
    }

    public String getUserVoicePath() {
        return userVoicePath;
    }

    public void setUserVoicePath(String userVoicePath) {
        this.userVoicePath = userVoicePath;
    }

    public String getUserVoiceUrl() {
        return userVoiceUrl;
    }

    public void setUserVoiceUrl(String userVoiceUrl) {
        this.userVoiceUrl = userVoiceUrl;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getImageIconUrl() {
        return imageIconUrl;
    }

    public void setImageIconUrl(String imageIconUrl) {
        this.imageIconUrl = imageIconUrl;
    }

    public String getImageLocal() {
        return imageLocal;
    }

    public void setImageLocal(String imageLocal) {
        this.imageLocal = imageLocal;
    }
}
